<%@ page contentType="text/html;charset=UTF-8" %>
{
	"apiVersion" : "1.0.0",
	"swaggerVersion" : "1.2",
	"basePath" : "http://localhost:7070/train/api",
	"resourcePath" : "/user",
	"produces" : [ "application/json" ],
	"apis" : [
			{
				"path" : "/user/{id}",
				"operations" : [
						{
							"method" : "GET",
							"summary" : "根据ID获得用户信息",
							"notes" : "",
							"type" : "User",
							"nickname" : "getUserByName",
							"authorizations" : {},
							"parameters" : [ {
								"name" : "id",
								"description" : "用户ID",
								"required" : true,
								"type" : "string",
								"paramType" : "path",
								"allowMultiple" : false
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							} ],
							"responseMessages" : [ {
								"code" : 403,
								"message" : "没有权限"
							}, {
								"code" : 404,
								"message" : "用户不存在"
							} ]
						},
						{
							"method" : "DELETE",
							"summary" : "删除用户",
							"notes" : "",
							"type" : "void",
							"nickname" : "deleteUser",
							"parameters" : [{
								"name" : "id",
								"description" : "用户ID",
								"required" : true,
								"type" : "string",
								"paramType" : "path",
								"allowMultiple" : false
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							} ],
							"responseMessages" : [ {
								"code" : 403,
								"message" : "没有权限"
							}, {
								"code" : 404,
								"message" : "用户不存在"
							} ]
						} ]
			} ],
	"models" : {
		"User" : {
			"id" : "User",
			"properties" : {
				"id" : {
					"type" : "integer",
					"format" : "int64"
				},
				"loginName" : {
					"type" : "string"
				},
				"name" : {
					"type" : "string"
				},
				"email" : {
					"type" : "string"
				},
				"remark" : {
					"type" : "string"
				}
			}
		}
	}
}